<!DOCTYPE html>
<html>
{{template "bodyHead" "<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/adminHome.css?v=1.0\"/>"}}
<body>

{{template "inc_header" .}}

<div id="main">
    <div id="main-inner">

        {{template "adminMainInfo" .}}

        {{template "adminMainNav" "cache"}}

        <div id="admin-cache-main" class="clouds">
            <h3 class="clouds-title" id="admin-page-title">缓存管理</h3>
            <div class="admin-cache-main">
                <ul>
                    <li><input type="button" name="resetCache" id="resetCache" value="重置缓存"></li>
                </ul>
            </div>
        </div>

    </div>
</div>

{{template "inc_footer" ""}}

<script>
    $('#resetCache').on('click',function () {
        $.ajax({
            url:'/admin/cache/update',
            method:"GET",
            dataType:"json",
            success:function (d) {
                if (d.error==0) {
                    alert("操作成功")
                }
            }
        })
    });
</script>
</body>
</html>